#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int a[3][3] = { {3, 5}, {8, 9}, {12, 35} }, i, sum = 0;
	for (i = 0; i < 3; i++)
		sum += a[i][2 - i];
	printf("%d", sum);
	return 0;
}